package marchsoft.modules.selfFish.finance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import marchsoft.modules.selfFish.finance.entity.Cost;
import marchsoft.response.Result;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author Lenovo
 * @version 1.0
 * @title CostService
 * @description
 * @create 2024-07-15 17:31
 */
public interface CostService extends IService<Cost> {

    /**查询
     * @param zhName 名称
     * @param pageNum 当前页
     * @param pageSize 每页数量
     * @return Result<Object>
     * @description 获取费用列表
     */
    Result<Object> getCostList(String zhName, Long pageNum, Long pageSize);

    /**查询总费用
     * @return Result<Object>
     * @description 查询总费用
     */
    Result<Object> getCostTotal();

    /**导出
     * @param zhName 名称
     * @param response 响应
     * @throws IOException 异常
     * @description 导出费用数据
     */
    void download(String zhName, HttpServletResponse response) throws IOException;
}
